package com.gui.exception;

import cn.hutool.core.util.RandomUtil;

public class ExceptionTest1 {

    public static void main(String[] args) {
        try {
            int number = RandomUtil.randomInt(-1, 2);
            double b = 1f / number;
            System.out.println("success");
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
